<extend name="Home@Base/common" xmlns="http://www.w3.org/1999/html"/>
<block name="body">
    <div class="span9 page_message">
        <section id="contents"> <include file="Home@Addons/_nav" />
            <div class="tab-content">
                <div>
                    <label class="item-label">督办任务信息:</label>
                    <table border=1>
                        <tr>
                            <td colspan="1" style="width: 80px"><label class="item-label">标题</label></td>
                            <td colspan="5" style="width: 350px"> <span class="check-tips">{$data.title}</span></td>
                            <td colspan="1"><label class="item-label">督办人</label></td>
                            <td colspan="1"> <span class="check-tips">{$data.from_who}</span></td>
                            <td colspan="1"><label class="item-label">创建时间</label></td>
                            <td colspan="1"> <span class="check-tips">{$data.time}</span></td>
                        </tr>
                        <tr>
                            <td colspan="1"><label class="item-label">任务接收人</label></td>
                            <td colspan="9" style="text-align:left"> <span class="check-tips">{$data.to_users}</span></td>
                        </tr>
                        <tr>
                            <td colspan="1"><label class="item-label">内容</label></td>
                            <td colspan="9" style="text-align:left" > <span class="check-tips">{$data.details}</span></td>
                        </tr>
                        <tr>
                            <td colspan="1"><label class="item-label">附件</label></td>
                            <td colspan="9" style="text-align:left">
                                <volist name="files" id="vo">
                                    <a href="{$vo['url']}"><span class="upload_icon_all" ></span>{$vo['name']}</a>
                                </volist>
                            </td>
                        </tr>
                    </table>
                </div>
                <volist name="usersReply" id="userReply">
                    <div style="margin-top: 28px">
                        <hr>
                        <label class="item-label">{$userReply.name}:</label>
                        <table border=1>
                            <volist name="userReply.replies" id="reply">
                                <tr>
                                    <td style="width: 80px;">{$reply.sendername}</td>
                                    <td style="text-align: left">
                                        <p>{$reply.comment}</p>
                                        <p>
                                            <volist name="reply.fileids" id="fileid">
                                                <a href="{$fileid['url']}"><span class="upload_icon_all" ></span>{$fileid['name']}</a>
                                            </volist>
                                        </p>
                                    </td>
                                </tr>
                            </volist>
                            <tr>
                                <td colspan="2">
                                    <span style="margin-right: 100px">
                                        <a href="{:U('OaSystem/OaNotice/addNewSupperviseReply/noticeId/'.$userReply['noticeid'].'/pid/'.$userReply['pid'])}">
                                            添加一条新的回复消息
                                        </a>
                                    </span>
                                    <span style="margin-left: 100px">
                                        <a href="{:U('OaSystem/OaNotice/setTaskDone/noticeId/'.$userReply['noticeid'].'/pid/'.$userReply['pid'])}">
                                            任务完成
                                        </a>
                                    </span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </volist>
            </div>
        </section>
    </div>
</block>
<block name="style">
    <style type="text/css">
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 0 auto;
            text-align: center;
            font-size: 14px;
        }
        table td, table th {
            border: 1px solid #cad9ea;
            color: #666;
            height: 30px;
            text-align: center;
        }
        table thead th {
            background-color: #CCE8EB;
            width: 100px;
        }
        table tr:nth-child(odd) {
            background: #fff;
        }
        table tr:nth-child(even) {
            background: #F5FAFA;
        }
        .button1 {
            background-color: #008CBA; /* blue */
            border: none;
            color: white;
            padding: 5px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 14px;
        }
    </style>
</block>